var express = require('express');
var path = require ('path');
var routes = require('./routes/routes');

var app = express();

app.set('view engine', 'html');
app.use(express.static(__dirname + '/public'));

app.get('/', routes.index);
app.get('/favicon.ico', routes.favicon);
app.get('/search', routes.search);
app.get('/graph', routes.graph);

var server = app.listen(3000, function() {
    console.log('Listening on port %d', server.address().port);
});